﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MapEditorMario
{
    public class GameObject
    {
        private int x1, y1, x2, y2;
        //private String id;

        private int obj_id;
        private int obj_type;

        public int ObjID
        {
            get { return obj_id; }
        }
        public int ObjType
        {
            get { return obj_type; }
            set { obj_type = value; }
        }
        //public String Id
        //{
        //    get { return id; }
        //    set { id = value; }
        //}
        public int Y2
        {
            get { return y2; }
            set { y2 = value; }
        }

        public int X2
        {
            get { return x2; }
            set { x2 = value; }
        }

        public int Y1
        {
            get { return y1; }
            set { y1 = value; }
        }

        public int X1
        {
            get { return x1; }
            set { x1 = value; }
        }

        public GameObject()
        {
            obj_type = 0;
        }
        //public GameObject(String id, int X1, int Y1, int X2, int Y2)
        //{
        //    this.id = id;
        //    this.x1 = X1;
        //    this.y1 = Y1;
        //    this.x2 = X2;
        //    this.y2 = Y2;
        //}

        public GameObject(int obj_id, int X1, int Y1, int X2, int Y2, int obj_type)
        {
            this.obj_id = obj_id;
            this.x1 = X1;
            this.y1 = Y1;
            this.x2 = X2;
            this.y2 = Y2;
            this.obj_type = obj_type;
        }

        //Tiles game
        public GameObject(int obj_id, int X1, int Y1, int X2, int Y2)
        {
            this.obj_id = obj_id;
            this.x1 = X1;
            this.y1 = Y1;
            this.x2 = X2;
            this.y2 = Y2;
            this.obj_type = 0;
        }
    }
}
